.class public Lcom/hyphenate/chat/EMHuaweiPushReceiver;
.super Lcom/huawei/android/pushagent/api/PushEventReceiver;


# static fields
.field private static final TAG:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/hyphenate/chat/EMHuaweiPushReceiver;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/hyphenate/chat/EMHuaweiPushReceiver;->TAG:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/huawei/android/pushagent/api/PushEventReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onToken(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)V
    .locals 2

    if-eqz p2, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMHuaweiPushReceiver;->TAG:Ljava/lang/String;

    const-string/jumbo v1, "register huawei push token success"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/hyphenate/chat/EMPushHelper;->getInstance()Lcom/hyphenate/chat/EMPushHelper;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/hyphenate/chat/EMPushHelper;->onReceiveToken(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/hyphenate/chat/EMHuaweiPushReceiver;->TAG:Ljava/lang/String;

    const-string/jumbo v1, "register huawei push token fail"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/hyphenate/chat/EMPushHelper;->getInstance()Lcom/hyphenate/chat/EMPushHelper;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMPushHelper;->onReceiveToken(Ljava/lang/String;)V

    goto :goto_0
.end method
